package Day_04;
import java.util.Scanner;
public class StandardPracticeDemo_GuessingGame_While {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int num = (int)(Math.random()*1000+1);
        System.out.println("Canning:"+num);

        System.out.println("Let's Guessing!");
        int guess=scan.nextInt();
        while(guess!=num){
            if(guess>num){
                System.out.println("It's too Big!");
            }else if(guess<num){
                System.out.println("It' too Low!");
            }
            System.out.println("Let's Guessing!");
            guess=scan.nextInt();
        }
        System.out.println("BinGo!");
    }
}
